<template>
  <div id="scm">
    <h1>scm配置管理</h1>

    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="scmKey" label="配置key" width="180"></el-table-column>
      <el-table-column prop="scmValue" label="配置值" width="180"></el-table-column>
      <el-table-column prop="state" label="状态" ></el-table-column>
      <el-table-column prop="scmDes" label="描述"></el-table-column>
      <el-table-column label="操作"> <button>操作</button> </el-table-column>
    </el-table>
  </div>
</template>



<script>
import { getScm } from "../api/user";
export default {
  data() {
    return {
      tableData: []
    };
  },
  created() {this.getAllScm()},
  methods: {
    getAllScm() {
      this.userInfo = localStorage.getItem("userdata");
      console.log(this.userInfo);
      const user = JSON.parse(this.userInfo);
      getScm(user.userId).then(res => {
        this.tableData = res.data.data;
      });
    }
  }
};
</script>

<<style lang="">
    
</style>

